// Constant.cpp
#include "Constant.h"

GNSSconsts::GNSSconsts() {
    SpeedOfLight = 299792458.0;
    Pi = 3.141592653589793;
    r2d = 57.295779513082321;
    refEllip = { 0.0, 0.0, 0.0, 0.0 };
}

double GNSSconsts::get_SpeedOfLight() const { return SpeedOfLight; }
double GNSSconsts::get_Pi() const { return Pi; }
double GNSSconsts::get_r2d() const { return r2d; }
RefEllip GNSSconsts::get_refEllip() const { return refEllip; }

BDSConsts::BDSConsts() {
    refEllip = { 6378137.0, 1.0 / 298.257222101, 3986004.418e8, 7.292115e-5 };
}

GPSConstant::GPSConstant() {
    refEllip = { 6378137.0, 1 / 298.257223563, 3986004.418e8, 7.292115e-5 };
}